Skip to content

DHCP_am: support multiple nameservers#4834

Merged
gpotter2 merged 2 commits intosecdev:masterfrom
gpotter2:nameservers
Sep 15, 2025
Merged

DHCP_am: support multiple nameservers#4834
gpotter2 merged 2 commits intosecdev:masterfrom
gpotter2:nameservers

Conversation

@gpotter2
Copy link
Copy Markdown
Member

@gpotter2 gpotter2 commented Sep 15, 2025

@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 15, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 80.50%. Comparing base (c7aa3e9) to head (7711b1f).

Files with missing lines Patch % Lines
scapy/layers/dhcp.py 83.33% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4834      +/-   ##
==========================================
- Coverage   80.88%   80.50%   -0.38%     
==========================================
  Files         368      368              
  Lines       90231    90236       +5     
==========================================
- Hits        72980    72643     -337     
- Misses      17251    17593     +342     
Files with missing lines Coverage Δ
scapy/layers/dhcp.py 82.81% <83.33%> (-0.05%) ⬇️

... and 18 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@gpotter2 gpotter2 merged commit b673424 into secdev:master Sep 15, 2025
24 checks passed
@gpotter2 gpotter2 deleted the nameservers branch September 15, 2025 21:45
result

# 3 results depending on the Python version
assert result in [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it fails on Fedora Rawhide (with Python 3.14.0rc2):

###(006)=[failed] Check that the dhcpd alias is properly defined and documented

>>> assert dhcpd
>>> import IPython
>>> 
>>> result = IPython.lib.pretty.pretty(dhcpd)
>>> result
'<function scapy.ansmachine.dhcpd(self, pool: scapy.base_classes.Net | List[str] = Net("192.168.1.128/25"), network: str = \'192.168.1.0/24\', gw: str = \'192.168.1.1\', nameserver: str | List[str] = None, domain: str | None = None, renewal_time: int = 60, lease_time: int = 1800, **kwargs)>'
>>> 
>>> assert result in [
...     '<function scapy.ansmachine.dhcpd(self, pool: Union[scapy.base_classes.Net, List[str]] = Net("192.168.1.128/25"), network: str = \'192.168.1.0/24\', gw: str = \'192.168.1.1\', nameserver: Union[str, List[str]] = None, domain: Optional[str] = None, renewal_time: int = 60, lease_time: int = 1800, **kwargs)>',
...     '<function scapy.ansmachine.dhcpd(self, pool: Union[scapy.base_classes.Net, List[str]] = Net("192.168.1.128/25"), network: str = \'192.168.1.0/24\', gw: str = \'192.168.1.1\', nameserver: Union[str, List[str]] = None, domain: Union[str, NoneType] = None, renewal_time: int = 60, lease_time: int = 1800, **kwargs)>',
...     '<function scapy.ansmachine.dhcpd(self, pool=Net("192.168.1.128/25"), network=\'192.168.1.0/24\', gw=\'192.168.1.1\', nameserver=None, domain=None, renewal_time=60, lease_time=1800, **kwargs)>',
... ]
AssertionError

https://download.copr.fedorainfracloud.org/results/packit/evverx-scapy-2/fedora-rawhide-aarch64/09564744-scapy/builder-live.log.gz

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ! See befe516

This varies a LOT depending on the Python version hehe ^^

@gpotter2 gpotter2 added this to the 2.7.0 milestone Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multiple Nameservers on DHCP_am

3 participants